package org.example.student_dormitory.dao;

import org.example.student_dormitory.entity.Admin;

import java.util.List;

public interface AdminManagerDao {
    public List<Admin> selectAll(int page, int pageSize);

    public List<Admin> selectAll(int page, int pageSize, String key, String value);


    public int selectCount();
    //根据用户名查询数据
    public Boolean selectByUsername(String username);
    //存用户
    public Boolean insert(Admin admin);

    public Boolean deleteById(int id);

    public boolean update(Admin admin);

    public boolean deleteList(int[] ids);
}
